<layout name="Layout/main" />

	<div class="panel-heading"><span ><a href="{:U('Rbc/addnode')}"  class="btn btn-success">添加权限</a></span></div>

	<!-- Table -->
	<table class="table  panel-body">
    
		<tr>
			<th>ID </th>
			<th>权限结构</th>
			<th>中文名称</th>
			
			<th>状态</th>
			<th>排序</th>
			<th>类型</th>
			
			<th>操作</th>
		</tr>
		<empty name='list'>
		<tr>
			<td colspan='6'>暂无数据 </td>
			
		</tr><else/>
		
		<volist name="list" id='vo'>
		<tr>
			<td>{$vo.id} </td>
			<td class="text-left"  <if condition="$vo['level'] eq 2" >style="padding-left:{$vo['level']*10}px;" <elseif condition="$vo['level'] eq 3"/>style="padding-left:{$vo['level']*10}px;"</if> >{$vo.name}</td>
			<td>{$vo.title}</td>
			
			<td><if condition=" $vo['status'] eq 1" ><span class="glyphicon glyphicon-ok text-success"></span><else/><span class=' text-danger glyphicon glyphicon-remove
			'></span></if></td>
			<td >{$vo.sort}</td>
			<td <if condition=" $vo['level'] eq 1" >class="text-danger" <elseif condition=" $vo['level'] eq 2"/>class="text-info"<else/>class="text-warning"</if> ><if condition=" $vo['level'] eq 1" >项目<elseif condition=" $vo['level'] eq 2"/>模块<else/>操作</if></td>
			<td>
			
			<a  class='btn  btn-xs btn-primary' href="{:U('rbc/editrole',array('id'=>$vo['id']))}" title="编辑权限 "><span  class="glyphicon glyphicon-wrench " ></span> 编辑</a>
			<a class='btn  btn-xs btn-danger' href="{:U('rbc/delnode',array('id'=>$vo['id']))}" title="删除权限"><span  class="glyphicon glyphicon-remove-sign " ></span> 删除</a>
			<a  class='btn btn-xs btn-info'  href="{:U('rbc/role',array('id'=>$vo['id']))}" title="禁用权限 "><span  class="glyphicon glyphicon-ban-circle" ></span> 禁用</a>
			</td>
			
		
		</tr>
		</volist>
		</empty>
	</table>

